#pragma once

#ifndef _CZLIB_H_
#define _CZLIB_H_

class CZlib {
private:
	static unsigned long compressTable[512];
	static char * decompressTable[2556];

public:
	static int				CZlib::init();

	static int				CZlib::compress_sub(char * output, unsigned long var1, unsigned long cume, char * lookup1, unsigned long var2, unsigned long var3, unsigned long lookup2);
	static int				CZlib::compress(char * input, unsigned long var1, char * output, unsigned long var2, unsigned long * lookup);
	static unsigned long	CZlib::decompress(char * in, unsigned long inSize, char * out, unsigned long outSize, char ** table);

	static unsigned long *	CZlib::getCompressTable();
	static char **			CZlib::getDecompressTable();
};

#endif